You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
LESSON LIST
-
4:38Parameters
-
3:35Basic SQL Query
-
3:13SQL Query
-
1:20Named Queries in Reports
-
2:23Tag Historian Query
-
2:06Tag Calculation Query
-
2:29Alarm Journal Query
-
1:27Static CSV
-
5:42Scripting Data Source
-
4:10Nested Queries
Take Topic Challenge
LESSON
Static CSV
Description
You can easily import data from a CSV or Excel file with the Static CSV data source.
Video recorded using: Ignition 8.1
Resources
Transcript
(open in window)[00:00] In this lesson, I'll show you how to quickly add data to your report with a static CSV data source. From the Data tab, create a new data source and select Static CSV. You'll see that the Static CSV is created with preloaded data. There are three column headers here and then two rows of values. There's a string column, an integer, and a float column. You'll notice that the string values are wrapped in quotation marks here but that isn't necessary. If I were to add another row of data here and didn't include the quotation marks, this would be fine. The only caveat to this is if you want your string to contain a comma. Since the values are delimited by commas, you'll want to wrap the string in quotes, so it doesn't think there are multiple values. I'll head over to the Design tab and we can look at using this data. If I expand the key browser, you'll see the three columns that were defined at the top of the CSV. I've already placed these innotable component. So I'll move over to the Preview tab.
[01:04] Here are the values from the CSV including my string value without the quotes. This data source can be useful when you want to quickly add data to a report, especially when you're in the testing phase. For example, this can be used when you don't yet have a database connection. You can build out what you want the report to look like and then you can swap it out for the real database data once you get access.